package com.tb.util;

public class MyConstant {

    // 域名
    public static final String DOMAIN_NAME = "http://45.32.11.95:8080/";

    // 头像根路径
    public static final String AVATAR_URL = "/image/avatar/default-";
    //头像文件后缀名
    public static final String AVATAR_SUFFIX = ".jpg";
    //默认头像起始序号
    public static final int AVATAR_START = 1;
    //默认头像终止序号
    public static final int AVATAR_END = 10;

    //默认话题图像路径
    public static final String TOPIC_HOT_URL = "/image/topic/hot.jpg";
    public static final String TOPIC_NEW_URL = "/image/topic/new.png";
    public static final String TOPIC_STAR_URL = "/image/topic/star.jpg";
    public static final String TOPIC_MY_URL = "/image/topic/my.jpg";
    public static final String TOPIC_SEARCH_URL = "/image/topic/search.png";

    //	权限名称
    public static final String role0 = "超级管理员";
    public static final String role1 = "管理员";
    public static final String role2 = "用户";

    //性别
    public static final byte SEX_WOMEN = 0;
    public static final byte SEX_MEN = 1;

    //邮箱操作
    public static final int MAIL_ACTIVATE = 0;
    public static final int MAIL_CHANGE_PASSWORD = 1;

    //行为类别
    public static final byte ACT_ASK = 0;
    public static final byte ACT_COMMENT_QUES = 1;
    public static final byte ACT_ANSWER = 2;
    public static final byte ACT_COMMENT_ANS = 3;
    public static final byte ACT_STAR = 4;
    public static final byte ACT_FOLLOW = 5;

    //分页常量
    public static final int PAGE_SIZE_QUESTION = 10;
    public static final int PAGE_SIZE_ANSWER = 5;
    public static final int PAGE_SIZE_MESSAGE = 10;
    //后台分页常量
    public static final int PAGE_SIZE_USER = 15;
    public static final int PAGE_SIZE_ILLEGALITY = 16;

}
